<head th:fragment=title(title)>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title th:text="${title}"></title>
    <link th:href="@{/plugins/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/plugins/font-awesome.css}" rel="stylesheet">
    <link th:href="@{/plugins/font-awesome.min.css}" rel="stylesheet">
    <link th:href="@{/plugins/bootstrap-dashen.css}" rel="stylesheet">
    <link th:href="@{/plugins/animate.css}" rel="stylesheet">
    <link th:href="@{/plugins/bootstrap-datetimepicker.min.css}" rel="stylesheet" media="screen">
    <link th:href="@{/favicon.ico}" rel="shortcut icon">
    <link th:href="@{/plugins/bootstrapfileinput/css/fileinput.min.css}" rel="stylesheet" media="screen">
    <link th:href="@{/plugins/bootstrapfileinput/themes/explorer-fa/theme.css}" rel="stylesheet" media="screen">
</head>


<!-- 通用JS -->
<div th:fragment="sc">
    <script th:src="@{/plugins/jquery.min.js}"></script>
    <script th:src="@{/plugins/bootstrap.js}"></script>

    <script th:src="@{/plugins/wow.min.js}"></script>
    <script th:src="@{/plugins/bootstrapvalidator/js/bootstrapValidator.min.js}"></script>
    <script th:src="@{/plugins/bootstrap-datetimepicker.min.js}" type="text/javascript" charset="UTF-8"></script>
    <script th:src="@{/plugins/locales/bootstrap-datetimepicker.zh-CN.js}" type="text/javascript" charset="UTF-8"></script>
    <script th:src="@{/plugins/bootstrapfileinput/js/fileinput.min.js}"></script>
    <script th:src="@{/plugins/bootstrapfileinput/js/locales/zh.js}"></script>
    <script th:src="@{/plugins/bootstraptreeview/bootstrap-treeview.min.js}"></script>
    <script th:src="@{/plugins/bootstrapfileinput/themes/explorer-fa/theme.js}"></script>
    <script th:inline="javascript">
        var basePath = [[@{/}]];
        function getLoginUserInfo() {
            $.ajax({
                url: basePath + "UserInfo/getLoginUserInfo",
                type: 'get',
                dataType: "json",
                success: function (e) {
                    //console.log(e);
                    if (e.success) {
                        $("#dLabel").text(e.obj);
                    } else {
                        console.info("获取用户信息失败！")
                        location.href = basePath + 'login';

                    }
                }

            });
        }
        $(function () {
            /**获取登录用户的信息*/
            getLoginUserInfo();
            /*小屏幕导航点击关闭菜单*/
            $('.navbar-collapse a').click(function () {
                $(this).css("background", "lightgreen");
                $('.navbar-collapse').collapse('hide');
            });
            new WOW().init();
        });
    </script>
    <!--footer-->
</div>

<div th:fragment="header">
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <!--小屏幕导航按钮和logo-->
            <div class="navbar-header">
                <button class="navbar-toggle" data-toggle="collapse"
                        data-target=".navbar-collapse">
                    <span class="icon-bar"></span> <span class="icon-bar"></span> <span
                        class="icon-bar"></span>
                </button>
                <a th:href="@{/index}" class="navbar-brand" style="font-family: '华文行楷'">三维模型质量检查</a>
            </div>
            <!--小屏幕导航按钮和logo-->
            <!--导航-->
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-left">
                    <li><a th:href="@{/index}">首页</a></li>
                    <li><a th:href="@{/UserInfo/userInfo}">个人中心</a></li>
                    <li><a th:href="@{/fileupload}">提交检查</a></li>
                    <li><a th:href="@{/testrecord}">测试记录</a></li>
                    <li><a th:href="@{/index}">站内通知</a></li>

                </ul>
                <div>
                    <ul class="nav navbar-nav navbar-right" >
                        <li class="dropdown">
                            <a id="dLabel" type="button"data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
                                                >
                            <span class="caret"></span>
                            </a>
                            <ul class="dropdown-menu" aria-labelledby="dLabel">
                                <li><a th:href="@{/index}"><span
                                        class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;首页</a></li>
                                <li><a th:href="@{/UserInfo/userInfo}"><span
                                        class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;个人中心</a></li>

                                <li><a th:href="@{/fileupload}"><span
                                        class="glyphicon glyphicon-file"></span>&nbsp;&nbsp;提交检查</a></li>

                                <li><a th:href="@{/testrecord}"><span
                                        class="glyphicon glyphicon-list-alt"></span>&nbsp;&nbsp;提交记录</a></li>

                                <li><a th:href="@{/TeamProject/teamInfo}"><span
                                        class="glyphicon glyphicon-th-large"></span>&nbsp;&nbsp;我的项目</a></li>
                            </ul>
                        </li>
                        <li>
                            <a th:href="@{/logout}"><span class="glyphicon glyphicon-off"></span>&nbsp;&nbsp;退出</a>
                        </li>
                    </ul>

                </div>
                <!--<div th:switch="${session.user_name!=null}">
                    <ul class="nav navbar-nav navbar-right" th:case="false">
                        <li><a href="#" onclick="register();"><i
                                class="fa fa-sign-in"></i>&nbsp;&nbsp;注册</a></li>
                        <li><a href="#" onclick="login();"><i class="fa fa-user"></i>&nbsp;&nbsp;登录</a></li>

                    </ul>
                    <ul class="nav navbar-nav navbar-right" th:case="true">
                        <li class="dropdown"><a id="dLabel" type="button"
                                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
                                                th:text="${session.user_name}">
                            <span class="caret"></span></a>
                            <ul class="dropdown-menu" aria-labelledby="dLabel">
                                <li><a th:href="@{/index}"><span
                                        class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;首页</a></li>
                                <li><a th:href="@{/UserInfo/userInfo}"><span
                                        class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;个人中心</a></li>

                                <li><a th:href="@{/fileupload}"><span
                                        class="glyphicon glyphicon-file"></span>&nbsp;&nbsp;提交检查</a></li>

                                <li><a th:href="@{/testrecord}"><span
                                        class="glyphicon glyphicon-list-alt"></span>&nbsp;&nbsp;提交记录</a></li>

                                <li><a th:href="@{/TeamProject/teamInfo}"><span
                                        class="glyphicon glyphicon-th-large"></span>&nbsp;&nbsp;我的项目</a></li>
                            </ul>
                        </li>
                        <li>
                            <a th:href="@{/logout}"><span class="glyphicon glyphicon-off"></span>&nbsp;&nbsp;退出</a>
                        </li>
                    </ul>

                </div>-->


            </div>
            <!--导航-->
        </div>
    </nav>
    <!--导航结束-->

</div>

<div th:fragment="footer">
    <!--footer-->
    <footer class="footer navbar-fixed-bottom ">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <a href="http://www.baidu.com" target=_blank>mumulx</a> |
                    <a href="http://www.baidu.com">本站招聘</a> |
                    <a href="http://www.baidu.com">联系站长</a> |
                    <a href="http://www.baidu.com">意见与建议</a> |
                    <a href="http://www.baidu.com" target=_blank>111</a> |
                    <a href="http://www.baidu.com">后台登录</a>
                </div>
            </div>
        </div>
    </footer>


</div>


